import request from '@/utils/request'

// 查询保险风控合同列表
export function listContract(query) {
    return request({
        url: '/risk/contract/list',
        method: 'get',
        params: query
    })
}

// 查询保险风控合同详细
export function getContract(id) {
    return request({
        url: '/risk/contract/' + id,
        method: 'get'
    })
}

// 新增保险风控合同
export function addContract(data) {
    return request({
        url: '/risk/contract',
        method: 'post',
        data: data
    })
}

// 修改保险风控合同
export function updateContract(data) {
    return request({
        url: '/risk/contract',
        method: 'put',
        data: data
    })
}

// 删除保险风控合同
export function delContract(id) {
    return request({
        url: '/risk/contract/' + id,
        method: 'delete'
    })
}

// 查询保险风控合同列表
export function getXlMainList(query) {
    return request({
        url: '/insurance/main/getXlMainList',
        method: 'get',
        params: query
    })
}

// 查询保险风控合同列表
export function getRiskStatics(query) {
    return request({
        url: '/risk/contract/statics',
        method: 'get',
        params: query
    })
}
// 查询保险风控合同列表
export function staticsRiskAmount(query) {
    return request({
        url: '/risk/contract/staticsRiskAmount',
        method: 'get',
        params: query
    })
}
